<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="style/admin.css" />
<link rel="stylesheet" type="text/css" href="style/global.css" />
<link rel="stylesheet" type="text/css" href="style/tip.css" />
<script language="javascript" type="text/javascript"
	src="js/My97DatePicker/WdatePicker.js"></script>
<table class="qi_table" width="0" border="0" cellpadding="0" cellspacing="1">
	<tr>
		<th>姓名</th>
		<th>问卷标题</th>
		<th>参与时间</th>
		<th>用户手机</th>
		<th>用户身份证</th>
		<th >操作</th>
	</tr>
              <?php 
              	if(is_array($quesnr) && count($quesnr)>0){
              		foreach ($quesnr as $v){
              ?>
    <tr>
		<td><?php echo $v['ATTEND_USER']?></td>
		<td style="text-align: left;"><?php echo $ques[$v['QUES_ID']]?></td>
		<td><?php echo date('Y-m-d',strtotime($v['ATTEND_TIME']))?></td>
		<td><?php echo $v['ATTEND_PHONE']?></td>
		<td>
			<?php echo $v['ATTEND_CARD'];?>
		</td>
		<td><a class="lookanswerinfo" href="/index.php?c=quesnr&a=showquest&look=1&id=<?php echo $v['QUES_ID']?>&sid=<?php echo $v['SURVEY_ID']?>">详情</a>
		</td>
	</tr>
              <?php 
              		}
              	}else{
              ?>
    <tr height="40">
		<td style="text-align: center; color: green;" colspan='7'>该用户暂时还没有进行问卷调查</td>
	</tr>
              <?php }?>
              <tr>
		<td colspan='7'><div class="pager-his">
					<?php 
						$url = '/index.php?c='.$_REQUEST['c'].'&a='.$_REQUEST['a'].'&p=_num_&pid='.$pid;
						echo JYTools::pager($url,$tolNum,$page,$pagesize);
					?></div>
			  </td>
	</tr>
	<tr>
		<!--<td colspan="7"><div class="page">共 2 条记录</div><div class="pageTurn"><a href="">首页</a> <a href="">上一页</a> 1/3页 <a href="">下一页</a> <a href="">尾页</a> 转到第<input class="text" name="" type="text" />页 <a href="">GO</a></div><div class="clear"></div></td>-->
	</tr>
</table>
<script type="text/javascript" src="js/jquery.js"></script>
<script>
$('.lookanswerinfo').click(function(){
	var url = $(this).attr('href')
	window.open(url,'newwindow','width=800,top=0,left=0,toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no')
	return false;
})
</script>